package lab02.test06;

import java.util.Scanner;

public class Test06 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入三角形的三边长：");
        double A = sc.nextDouble();
        double B = sc.nextDouble();
        double C = sc.nextDouble();

        Triangle da = new Triangle();

        if(da.getMyTriangle(A,B,C)){
            System.out.println("三角形周长："+da.getPerimeter(A,B,C));
            System.out.println("三角形面积："+da.getArea(A,B,C));
        }

        Ladder la = new Ladder();
        System.out.println("请输入梯形的上底、下底和高：");
        double upbottom = sc.nextDouble();
        double downbottom = sc.nextDouble();
        double high = sc.nextDouble();
        System.out.println("梯形的面积："+la.getArea(upbottom,downbottom,high));

        Circle ci = new Circle();
        System.out.println("请输入圆的半径：");
        double radius = sc.nextDouble();
        System.out.println("圆的周长："+ci.getPerimeter(radius));
        System.out.println("圆的面积："+ci.getArea(radius));
    }
}
